/**
* 配置路由
**/
//随手拍北京列表页
const List = resolve => { require.ensure(['./list/list.vue'], () => { resolve(require('./list/list.vue')) }) }
//随手拍详情
const Detail = resolve => { require.ensure(['./detail/detail-praising.vue'], () => { resolve(require('./detail/detail-praising.vue')) }) }
const DetailPraising = resolve => { require.ensure(['./detail/detail-praising.vue'], () => { resolve(require('./detail/detail-praising.vue')) }) }
const DetailReport = resolve => { require.ensure(['./detail/detail-report.vue'], () => { resolve(require('./detail/detail-report.vue')) }) }
//随手拍北京发布页
const Issue = resolve => { require.ensure(['./issue/issue.vue'], () => { resolve(require('./issue/issue.vue')) }) }
//随手拍北京发布页测试
//const ImgView = resolve => { require.ensure(['./img-view/img-view.vue'], () => { resolve(require('./img-view/index.vue')) }) }

// 大赞北京列表页
const PraiseList = resolve => { require.ensure(['./praise-list/list.vue'], () => { resolve(require('./praise-list/list.vue')) }) }
// 大赞北京详情页
const PraiseDetail = resolve => { require.ensure(['./praise-detail/index.vue'], () => { resolve(require('./praise-detail/index.vue')) }) }

// 专题列表页
const SubjectList = resolve => { require.ensure(['./subject-list/list.vue'], () => { resolve(require('./subject-list/list.vue')) }) }

// 专题列表页
const Introduction = resolve => { require.ensure(['./introduce-conv/introduction.vue'], () => { resolve(require('./introduce-conv/introduction.vue')) }) }

// 问题处理反馈页
const Feed = resolve => { require.ensure(['./detail/feedback.vue'], () => { resolve(require('./detail/feedback.vue')) }) }
//测试首页
const routers = [
  //入口
  {
    path: '/',
    redirect: '/praise-list',
  },
  //列表页面
  {
    name: 'list',
    path: '/list',
    component: List
  },
  //图片视图
  //{
  //  name: 'imgView',
  //  path: '/img-view/:url',
  //  component: ImgView
  //},
  //详情
  {
    name: 'detail',
    path: '/detail/:id',
    component: Detail
  },
  //大赞北京详情
  {
    name: 'detailPraising',
    path: '/detail-praising/:id',
    component: DetailPraising
  },
  //投诉类详情
  {
    name: 'detailReport',
    path: '/detail-report/:id',
    component: DetailReport
  },
  //发布
  {
    name: 'issue',
    path: '/issue',
    component: Issue
  },
  // 大赞北京列表页
  {
    name: 'praiseList',
    path: '/praise-list',
    component: PraiseList
  },
  // 大赞北京详情页
  {
    name: 'praiseDetail',
    path: '/praise-detail',
    component: PraiseDetail
  },
   // 反馈页
  {
    name: 'feed',
    path: '/feed/:id',
    component: Feed
  },
    //专题列表页
  {
    name:'subjectList',
    path:'/subject-list/:subjectId',
    component:SubjectList
  },
    //随手拍介绍页
    {
        name:'introduction',
        path:'/introduction',
        component:Introduction
    }

]
export default routers
